<?php
 
$fp=fopen("foo.txt","w");
var_dump( is_array($fp));
var_dump( is_array([]));
class AA{
    function bb() {
        
    }
}
$array=["AA","bb"];
 
var_dump( is_array($array));